package com.journey.org.ui.video.recommend

import android.os.Bundle
import android.view.LayoutInflater
import android.view.ViewGroup
import com.journey.org.BR
import com.journey.org.R
import com.journey.org.databinding.FragmentRecommendVideoBinding
import com.mvvmhabit.org.base.BaseLazyFragment

/**
 * @Date: 2020/11/19 16:50
 * @Author:小妖
 * @Description: 推荐视频
 */
class RecommendFragment : BaseLazyFragment<FragmentRecommendVideoBinding, RecommendViewModel>() {

    override fun lazyLoadData() {
        mViewModel?.loadHomeRecommendListData()
    }

    override fun initVariableId(): Int = BR.viewModel

    override fun initViewModel(): Class<RecommendViewModel> = RecommendViewModel::class.java

    override fun initContentView(
        inflater: LayoutInflater?,
        container: ViewGroup?,
        savedInstanceState: Bundle?
    ): Int = R.layout.fragment_recommend_video

}